package spring.lottery.server.dto;

import lombok.Data;
import spring.lottery.common.util.ToStdDate;

import java.util.Date;

@Data
public class WinningsDto {
    private String winningTime;
    private String winnerName;
    private String prizeName;
    private String prizeTier;

    public void setWinningTime(final Date winningTime) {
        this.winningTime = ToStdDate.tran(winningTime);
    }
}
